package com.shire.shire_interface.dao.accounts;

import com.shire.shire_interface.model.account.DeviceKey;
import com.shire.shire_interface.model.account.DeviceKeyExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceKeyDao {
    long countByExample(DeviceKeyExample example);

    int deleteByExample(DeviceKeyExample example);

    int deleteByPrimaryKey(Integer keyid);

    int insert(DeviceKey record);

    int insertSelective(DeviceKey record);

    List<DeviceKey> selectByExample(DeviceKeyExample example);

    DeviceKey selectByPrimaryKey(Integer keyid);

    int updateByExampleSelective(@Param("record") DeviceKey record, @Param("example") DeviceKeyExample example);

    int updateByExample(@Param("record") DeviceKey record, @Param("example") DeviceKeyExample example);

    int updateByPrimaryKeySelective(DeviceKey record);

    int updateByPrimaryKey(DeviceKey record);
}